
import * as antdIcon from "@vicons/antd";
import * as carbonIcon from "@vicons/carbon";
import * as tablerIcon from "@vicons/tabler";
import * as fluentIcon from "@vicons/fluent";
const Icons = { ...antdIcon, ...carbonIcon, ...tablerIcon, ...fluentIcon };
export const getIcon = (iconName: IconType, options?: any) => {
    if (!iconName) return;
    const IconComponent = Icons[iconName];
    return () => h(IconComponent, options);
}